package code.example.base.temp;

import code.example.tool.LogFactory;

public class TempTest {
    public int hash(int h){
        return ((h << 1) - (h << 8)) & 0x7F;
    }
    public void startTest(){
        for(int i=0;i<100;i++){
            int v = hash(i);

            LogFactory.getLog().info("value:"+i+", Integer.highestOneBit("+i+"):"+Integer.highestOneBit(i));
            LogFactory.getLog().info("value:"+i+", hash:"+v);
        }
    }
    public static void main(String args []){
        new TempTest().startTest();
    }
}
